package com.shoppingmalltest.shoppingmalltest.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shoppingmalltest.common.utils.PageUtils;
import com.shoppingmalltest.common.utils.Query;

import com.shoppingmalltest.shoppingmalltest.product.dao.ChapterDao;
import com.shoppingmalltest.shoppingmalltest.product.entity.ChapterEntity;
import com.shoppingmalltest.shoppingmalltest.product.service.ChapterService;


@Service("chapterService")
public class ChapterServiceImpl extends ServiceImpl<ChapterDao, ChapterEntity> implements ChapterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ChapterEntity> page = this.page(
                new Query<ChapterEntity>().getPage(params),
                new QueryWrapper<ChapterEntity>()
        );

        return new PageUtils(page);
    }

}